import meta from "@/js/camera_meta";

function handleExtAttr(devMo) {
    let extAttrs = devMo["extendedAttributes"];
    for (let key in extAttrs) {
        if (meta.hide_attr.includes(key)) {
            continue
        }
        devMo[key] = extAttrs[key];
    }
    delete devMo["extendedAttributes"];
    return devMo;
}

export default handleExtAttr;